<php>
//获取文件列表
$file_ids = explode(',', $upload_value ? $upload_value : $info[$upload_field]);
if(!empty($file_ids)){
	$where['id'] = array('in', $file_ids);
	$upload_list = D('File')->where($where)->select();
}
$is_show_btn = true;
if(!$is_multi && $upload_list){
	$is_show_btn = false;
}
</php>
<eq name="is_wrap_name" value="1">
<div class="mod_data upload-box">
	<div class="name">{$upload_name}</div>
	<div class="input_data">
</eq>
		<eq name="is_upload" value="1">
		<span class="btn btn-upload win {$upload_field}-upload-btn" rel="{:URL('File/win_upload', array('upload_type' => $upload_type, 'upload_field' => $upload_field, 'is_multi' => $is_multi, 'upload_file_ext' => $upload_file_ext))}" title="上传{$upload_name}" style="<eq name='is_show_btn' value='0'>display:none;</eq>">上传{$upload_name}{$upload_desc}</span>
		</eq>
		<div class="upload-list" id="upload-list-{:md5($upload_field)}">
			<input type="hidden" name="{$upload_field}[]" value="0">
			<volist name="upload_list" id="rs">
			<li>
			<php>
				$is_pic = in_array($rs['ext'], D('File')->img_ext);
			</php>
				<a class="nojump <eq name="is_pic" value="1">view_big_pic</eq>" href="{$rs['filepath']}">
					<div class="img" title="{$rs['filename']}">
						<eq name="is_pic" value="1">
							<img src="{$rs['filepath']}!w120_h120.jpg" alt="{$rs['filename']}">
						<else/>
							<img src="{:D('File')->get_path('icon-file.png', 200, 200)}" alt="{$rs['filename']}">
						</eq>
					</div>
					<span class="desc">{$rs['filename']}</span>
				</a>
				<input type="hidden" name="{$upload_field}[]" value="{$rs['id']}">
				<eq name="is_upload" value="1">
				<span class="cancel delete-select-upload-file" is-mulit="{$is_mulit}" field="{$upload_field}">X</span>
				</eq>
			</li>
			</volist>
		</div>
<eq name="is_wrap_name" value="1">
	</div>
</div>
</eq>